package com.hwd.gmall.model.enums;

/**
 * 进程状态枚举类
 *
 * @author Victor
 */

public enum ProcessStatus {

    /**
     * 进程状态，未支付
     */
    UNPAID("未支付", OrderStatus.UNPAID),

    /**
     * 进程状态，已支付
     */
    PAID("已支付", OrderStatus.PAID),

    /**
     * 进程状态，已通知仓储
     */
    NOTIFIED_WARE("已通知仓储", OrderStatus.PAID),

    /**
     * 进程状态，待发货
     */
    WAITING_DELEVER("待发货", OrderStatus.WAITING_DELIVER),

    /**
     * 进程状态，库存异常
     */
    STOCK_EXCEPTION("库存异常", OrderStatus.PAID),

    /**
     * 进程状态，已发货
     */
    DELEVERED("已发货", OrderStatus.DELIVERED),

    /**
     * 进程状态，已关闭
     */
    CLOSED("已关闭", OrderStatus.CLOSED),

    /**
     * 进程状态，已完结
     */
    FINISHED("已完结", OrderStatus.FINISHED),

    /**
     * 进程状态，支付失败
     */
    PAY_FAIL("支付失败", OrderStatus.UNPAID),

    /**
     * 进程状态，订单已拆分
     */
    SPLIT("订单已拆分", OrderStatus.SPLIT);

    private String comment;
    private OrderStatus orderStatus;

    ProcessStatus(String comment, OrderStatus orderStatus) {
        this.comment = comment;
        this.orderStatus = orderStatus;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public OrderStatus getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(OrderStatus orderStatus) {
        this.orderStatus = orderStatus;
    }

}
